package cn.com.coding.system.service.impl;

import cn.com.coding.common.utils.PageUtil;
import cn.com.coding.common.utils.Query;
import cn.com.coding.system.dao.UserReplyDao;
import cn.com.coding.system.service.UserReplyService;
import cn.com.coding.system.domin.UserReplyEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("userReplyService")
public class UserReplyServiceImpl extends ServiceImpl<UserReplyDao, UserReplyEntity> implements UserReplyService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserReplyEntity> page = this.page(new Query<UserReplyEntity>().getPage(params), new QueryWrapper<UserReplyEntity>());

        return new PageUtil(page);
    }

}